home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / languages / turbo_part1.lha / modula / m2 / Storage.def < prev    next >
Encoding:
Modula Definition  |  1994-12-23  |  403 b   |  14 lines

  1. DEFINITION MODULE Storage ;
  2.  
  3. FROM SYSTEM IMPORT ADDRESS ;
  4.  
  5. PROCEDURE ALLOCATE( VAR adr : ADDRESS ; size : LONGINT ) ;
  6. (* Allocates and clears size bytes of memory.        *)
  7. (* Aborts program execution if the allocation fails *)
  8.  
  9. PROCEDURE DEALLOCATE( VAR adr : ADDRESS ; size : LONGINT ) ;
  10. (* Aborts if adr = NIL.                         *)
  11. (* Size argument is ignored ( the entire block is always freed). *)
  12.  
  13. END Storage.
  14.